package org.apache.storm.kafka.bolt;

import org.apache.storm.task.ShellBolt;
import org.apache.storm.topology.IRichBolt;
import org.apache.storm.topology.OutputFieldsDeclarer;
import org.apache.storm.tuple.Fields;

import java.util.Map;

/**
 * Created by peibin on 2017/11/17.
 */
public class SimpleShellBolt extends ShellBolt implements IRichBolt {

    public SimpleShellBolt() {
//        super("/usr/local/bin/SplitSentence");
        super("sh", "start.sh");

    }

    @Override
    public void declareOutputFields(OutputFieldsDeclarer declarer) {
        declarer.declare(new Fields("word"));
    }

    @Override
    public Map<String, Object> getComponentConfiguration() {
        return null;
    }
}
